#ifndef __DEBUGE__H_
#define __DEBUGE__H_
#include "stdlib.h"
#include "usart.h"
#include "rs485.h"
#include "SEGGER_RTT.h"


//#define DEBUG
#ifdef DEBUG
#define debug(format, ...)     { SEGGER_RTT_printf(0, format, ##__VA_ARGS__);}
	//#define debug(format, ...)     { RS485_DE_HIGH();printf(format, ##__VA_ARGS__);RS485_DE_LOW();}
#else
#define debug(format, ...)
#endif


#endif


